import './App.css'

import {
  BrowserRouter as Router,
  NavLink
} from "react-router-dom"

import RouterView from './router/RouterView'
import routes from './router/index'

function App() {

  return (
    <div className="App">
      {/* <h2>入口模块：antd的使用</h2> */}
      <Router>
        {/* <nav>
          <NavLink to="/main">首页</NavLink>
          <NavLink to="/login">登录</NavLink>
          <NavLink to="/reg">注册</NavLink>
        </nav> */}

        <RouterView routes={routes}></RouterView>
      </Router>
    </div>
  )
}

export default App
